package com.cskaoyan.mapper.transfer;


import com.cskaoyan.bean.po.wxPo.MarketOrder;
import com.cskaoyan.bean.vo.vxVo.OrderInfoBean;
import com.cskaoyan.bean.vo.vxVo.OrderListVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author by WANGJun
 * @date 2022/6/7 15:26
 */
@Mapper
public interface MarketOrderDetailVOMapper {

    MarketOrderDetailVOMapper INSTANCE = Mappers.getMapper(MarketOrderDetailVOMapper.class);

        @Mappings({
                // @Mapping(source = "orderStatus", target = "orderStatus"),
                // @Mapping(source = "picUrlsString", target = "aftersaleStatus"),
                // @Mapping(source = "picUrlsString", target = "orderSn"),
                // @Mapping(source = "picUrlsString", target = "actualPrice"),
                // @Mapping(source = "id", target = "id")
                @Mapping(source = "orderStatus",target = "orderStatusText")
        })
        OrderInfoBean po2Vo(MarketOrder marketOrder);
}
